<template>
	<view class="container">
		<view class="details">
			<view class="detail-header">
				<text class="label">税费</text>
				<text class="value">-{{ listData.taxPrice || 0 }}</text>
			</view>
		</view>
		<!-- 提现详细信息 -->
		<view class="details">
			<!-- <view class="detail-header">
				<text class="label">提现金额（元）</text>
				<text class="value">{{listData.withdrawalPrice || 0}}</text>
			</view> -->
			
			<div class="detail-body" >
				<view class="detail-item" v-for="(item, index) in detailList" :key="index">
					<view class="label">
						{{ item.label }}
					</view>

					<text class="value">{{  listData[item.value]  || ''}}</text>
				</view>
			</div>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			// 这里可以动态绑定数据
			withdrawalId: null,
			status: 0,
			type: '1',
			status: '0',
			active: 2,
			listData: {},
			copyData: '',
			detailList: [
				
				{
					label: '本次提现金额',
					value: 'withdrawalPrice'
				},
				{
					label: '纳税期间',
					value: 'taxDateStr'
				},
				{
					label: '税种',
					value: 'taxType'
				},
				{
					label: '税费计算公式',
					value: 'taxCount'
				},
				{
					label: '本次代征增值税',
					value: 'addTaxPrice'
				},
				{
					label: '本次代征附加税',
					value: 'additionalPrice'
				},
				{
					label: '本次代扣个税',
					value: 'personalTaxPrice'
				},
				{
					label: '本次税后金额',
					value: 'actualAmount'
				},
				{
					label: '币种',
					value: 'currency'
				},
				{
					label: '结算单号',
					value: 'settlementId'
				}
			],
			
		};
	},
	onLoad(option) {
		this.withdrawalId = option.withdrawalId;
		this.$post(`/yahe/account/withdrawalProgress/${this.withdrawalId}`, {}, '1').then((res) => {
			if (res.success) {
				this.listData = res.content;
				
			} else {
				this.$toast(res.message, 'none');
			}
		});
	},
	methods: {
		// 复制文本
	}
};
</script>
<style lang="scss">
// @import '@/uni_modules/uview-ui/theme.scss';
</style>

<style scoped lang="less">
.container {
	padding: 24rpx;
	// background-color: #f8f8f8;
	height: 100%;
	box-sizing: border-box;
}

.header {
	margin-bottom: 40rpx;
}

.title {
	font-size: 36rpx;
	font-weight: bold;
	color: #333;
}

.progress-steps {
	background: #ffffff;
	border-radius: 20rpx 20rpx 20rpx 20rpx;
	margin-top: 40rpx;
	margin-bottom: 20rpx;
}

.step {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20rpx 0;
	border-bottom: 2rpx solid #eee;
}

.step-title {
	font-size: 28rpx;
	color: #333;
}

.step-time {
	font-size: 24rpx;
	color: #999;
}

.details {
	background-color: #fff;
	padding: 0rpx 30rpx;
	// border-radius: 16rpx;
}

.detail-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding: 40rpx 0rpx 28rpx;
}

.detail-body {
	padding: 28rpx 0px 40rpx;
}

.detail-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18rpx 0;
	::v-deep .uni-tooltip-popup {
		width: 200rpx;
		font-size: 20rpx;
		padding: 12rpx;
	}
}

.detail-item:last-child {
	border-bottom: none;
}

.detail-header .label {
	font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
	font-weight: 400;
	font-size: 28rpx;
	color: #3a3a3a;
	line-height: 33rpx;
	text-align: center;
	font-style: normal;
	text-transform: none;
}

.detail-header .value {
	margin-top: 20rpx;
	font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
	font-weight: 500;
	font-size: 52rpx;
	color: #3a3a3a;
	line-height: 61rpx;
	text-align: center;
	font-style: normal;
	text-transform: none;
}

.detail-item .label {
	font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
	font-weight: 400;
	font-size: 28rpx;
	color: #6d6d6d;
	line-height: 33rpx;
	text-align: center;
	font-style: normal;
	text-transform: none;
	display: flex;
}

.detail-item .value {
	font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
	font-weight: 400;
	font-size: 28rpx;
	color: #3a3a3a;
	line-height: 33rpx;
	text-align: left;
	font-style: normal;
	text-transform: none;
}

.withdraw-btn {
	background: linear-gradient(90deg, #29d8c6 0%, #10beaf 100%);
	border-radius: 88rpx 88rpx 88rpx 88rpx;
	font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
	font-weight: 400;
	font-size: 30rpx;
	color: #ffffff;
	text-align: center;
	font-style: normal;
	text-transform: none;
}

.fixed-bottom {
	position: fixed;
	bottom: 20rpx;
	left: 0;
	right: 0;
	padding: 20rpx 40rpx;
}

.reason-text {
	font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
	font-weight: 400;
	font-size: 22rpx;
	color: #f02506;
	line-height: 30rpx;
	text-align: justified;
	font-style: normal;
	text-transform: none;
	padding: 28rpx 24rpx;
}

.point-body {
	display: flex;
	font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
	font-weight: 400;
	font-size: 22rpx;
	color: #6d6d6d;
	line-height: 26rpx;
	font-style: normal;
	text-transform: none;
	padding: 20rpx 0rpx 32rpx 24rpx;
}

.point {
	margin: 0rpx 10rpx;
	color: #0a978e;
}

.line {
	width: 90%;
	border: 0.5px solid #efefef;
	margin: 8rpx auto 0rpx;
}
</style>

<style lang="less" scoped>
.status-btn {
	/* #ifndef APP-NVUE */
	display: flex;
	/* #endif */
	flex-direction: row;
	align-items: center;
	justify-content: center;
	height: 92rpx;
	margin: 30rpx;
	background-color: #007aff;
}

.example-body {
	/* #ifndef APP-NVUE */
	display: block;
	/* #endif */
	padding: 15px;
	flex-direction: row;
}
.progress-steps {
	.step-list {
		display: flex;
		justify-content: center;
		.steps-title {
			font-weight: 400;
			font-size: 28rpx;
			color: #6d6d6d;
			padding: 20rpx;
		}
		.steps {
			padding: 20rpx;
			flex: 1;
			::v-deep .u-steps-item__content--column {
				margin-left: 20rpx !important;
			}
			::v-deep .u-text {
				flex: 0;
			}
			::v-deep .u-steps-item__wrapper__dot {
				width: 16rpx;
				height: 16rpx;
			}
			::v-deep .u-steps-item__line--column {
				background: repeating-linear-gradient(to bottom, #ebedf0, #ebedf0 1px, transparent 1px, transparent 2px);
			}
			::v-deep .u-steps--column {
				height: 300rpx;
			}
			.slot-icon {
				width: 16rpx;
				height: 16rpx;
				background-color: rgb(150, 151, 153);
				border-radius: 100rpx;
			}
		}
	}
}
</style>
